package com.fc.mall.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class OmsBargainListExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OmsBargainListExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andBargainIdIsNull() {
            addCriterion("bargain_id is null");
            return (Criteria) this;
        }

        public Criteria andBargainIdIsNotNull() {
            addCriterion("bargain_id is not null");
            return (Criteria) this;
        }

        public Criteria andBargainIdEqualTo(Integer value) {
            addCriterion("bargain_id =", value, "bargainId");
            return (Criteria) this;
        }

        public Criteria andBargainIdNotEqualTo(Integer value) {
            addCriterion("bargain_id <>", value, "bargainId");
            return (Criteria) this;
        }

        public Criteria andBargainIdGreaterThan(Integer value) {
            addCriterion("bargain_id >", value, "bargainId");
            return (Criteria) this;
        }

        public Criteria andBargainIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("bargain_id >=", value, "bargainId");
            return (Criteria) this;
        }

        public Criteria andBargainIdLessThan(Integer value) {
            addCriterion("bargain_id <", value, "bargainId");
            return (Criteria) this;
        }

        public Criteria andBargainIdLessThanOrEqualTo(Integer value) {
            addCriterion("bargain_id <=", value, "bargainId");
            return (Criteria) this;
        }

        public Criteria andBargainIdIn(List<Integer> values) {
            addCriterion("bargain_id in", values, "bargainId");
            return (Criteria) this;
        }

        public Criteria andBargainIdNotIn(List<Integer> values) {
            addCriterion("bargain_id not in", values, "bargainId");
            return (Criteria) this;
        }

        public Criteria andBargainIdBetween(Integer value1, Integer value2) {
            addCriterion("bargain_id between", value1, value2, "bargainId");
            return (Criteria) this;
        }

        public Criteria andBargainIdNotBetween(Integer value1, Integer value2) {
            addCriterion("bargain_id not between", value1, value2, "bargainId");
            return (Criteria) this;
        }

        public Criteria andAssistorIdIsNull() {
            addCriterion("assistor_id is null");
            return (Criteria) this;
        }

        public Criteria andAssistorIdIsNotNull() {
            addCriterion("assistor_id is not null");
            return (Criteria) this;
        }

        public Criteria andAssistorIdEqualTo(Integer value) {
            addCriterion("assistor_id =", value, "assistorId");
            return (Criteria) this;
        }

        public Criteria andAssistorIdNotEqualTo(Integer value) {
            addCriterion("assistor_id <>", value, "assistorId");
            return (Criteria) this;
        }

        public Criteria andAssistorIdGreaterThan(Integer value) {
            addCriterion("assistor_id >", value, "assistorId");
            return (Criteria) this;
        }

        public Criteria andAssistorIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("assistor_id >=", value, "assistorId");
            return (Criteria) this;
        }

        public Criteria andAssistorIdLessThan(Integer value) {
            addCriterion("assistor_id <", value, "assistorId");
            return (Criteria) this;
        }

        public Criteria andAssistorIdLessThanOrEqualTo(Integer value) {
            addCriterion("assistor_id <=", value, "assistorId");
            return (Criteria) this;
        }

        public Criteria andAssistorIdIn(List<Integer> values) {
            addCriterion("assistor_id in", values, "assistorId");
            return (Criteria) this;
        }

        public Criteria andAssistorIdNotIn(List<Integer> values) {
            addCriterion("assistor_id not in", values, "assistorId");
            return (Criteria) this;
        }

        public Criteria andAssistorIdBetween(Integer value1, Integer value2) {
            addCriterion("assistor_id between", value1, value2, "assistorId");
            return (Criteria) this;
        }

        public Criteria andAssistorIdNotBetween(Integer value1, Integer value2) {
            addCriterion("assistor_id not between", value1, value2, "assistorId");
            return (Criteria) this;
        }

        public Criteria andNicknameIsNull() {
            addCriterion("nickname is null");
            return (Criteria) this;
        }

        public Criteria andNicknameIsNotNull() {
            addCriterion("nickname is not null");
            return (Criteria) this;
        }

        public Criteria andNicknameEqualTo(String value) {
            addCriterion("nickname =", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameNotEqualTo(String value) {
            addCriterion("nickname <>", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameGreaterThan(String value) {
            addCriterion("nickname >", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameGreaterThanOrEqualTo(String value) {
            addCriterion("nickname >=", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameLessThan(String value) {
            addCriterion("nickname <", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameLessThanOrEqualTo(String value) {
            addCriterion("nickname <=", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameLike(String value) {
            addCriterion("nickname like", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameNotLike(String value) {
            addCriterion("nickname not like", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameIn(List<String> values) {
            addCriterion("nickname in", values, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameNotIn(List<String> values) {
            addCriterion("nickname not in", values, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameBetween(String value1, String value2) {
            addCriterion("nickname between", value1, value2, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameNotBetween(String value1, String value2) {
            addCriterion("nickname not between", value1, value2, "nickname");
            return (Criteria) this;
        }

        public Criteria andIconIsNull() {
            addCriterion("icon is null");
            return (Criteria) this;
        }

        public Criteria andIconIsNotNull() {
            addCriterion("icon is not null");
            return (Criteria) this;
        }

        public Criteria andIconEqualTo(String value) {
            addCriterion("icon =", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconNotEqualTo(String value) {
            addCriterion("icon <>", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconGreaterThan(String value) {
            addCriterion("icon >", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconGreaterThanOrEqualTo(String value) {
            addCriterion("icon >=", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconLessThan(String value) {
            addCriterion("icon <", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconLessThanOrEqualTo(String value) {
            addCriterion("icon <=", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconLike(String value) {
            addCriterion("icon like", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconNotLike(String value) {
            addCriterion("icon not like", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconIn(List<String> values) {
            addCriterion("icon in", values, "icon");
            return (Criteria) this;
        }

        public Criteria andIconNotIn(List<String> values) {
            addCriterion("icon not in", values, "icon");
            return (Criteria) this;
        }

        public Criteria andIconBetween(String value1, String value2) {
            addCriterion("icon between", value1, value2, "icon");
            return (Criteria) this;
        }

        public Criteria andIconNotBetween(String value1, String value2) {
            addCriterion("icon not between", value1, value2, "icon");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andBargainMoneyIsNull() {
            addCriterion("bargain_money is null");
            return (Criteria) this;
        }

        public Criteria andBargainMoneyIsNotNull() {
            addCriterion("bargain_money is not null");
            return (Criteria) this;
        }

        public Criteria andBargainMoneyEqualTo(BigDecimal value) {
            addCriterion("bargain_money =", value, "bargainMoney");
            return (Criteria) this;
        }

        public Criteria andBargainMoneyNotEqualTo(BigDecimal value) {
            addCriterion("bargain_money <>", value, "bargainMoney");
            return (Criteria) this;
        }

        public Criteria andBargainMoneyGreaterThan(BigDecimal value) {
            addCriterion("bargain_money >", value, "bargainMoney");
            return (Criteria) this;
        }

        public Criteria andBargainMoneyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("bargain_money >=", value, "bargainMoney");
            return (Criteria) this;
        }

        public Criteria andBargainMoneyLessThan(BigDecimal value) {
            addCriterion("bargain_money <", value, "bargainMoney");
            return (Criteria) this;
        }

        public Criteria andBargainMoneyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("bargain_money <=", value, "bargainMoney");
            return (Criteria) this;
        }

        public Criteria andBargainMoneyIn(List<BigDecimal> values) {
            addCriterion("bargain_money in", values, "bargainMoney");
            return (Criteria) this;
        }

        public Criteria andBargainMoneyNotIn(List<BigDecimal> values) {
            addCriterion("bargain_money not in", values, "bargainMoney");
            return (Criteria) this;
        }

        public Criteria andBargainMoneyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("bargain_money between", value1, value2, "bargainMoney");
            return (Criteria) this;
        }

        public Criteria andBargainMoneyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("bargain_money not between", value1, value2, "bargainMoney");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}